package logic;

import java.io.Serializable;
/**
 * pdf properties are saved in this class during pdf open\save
 * each book has a pdf
 */
public class PdfFile implements Serializable{
/**
 * pdf filename (including path)
 */
String fileName=null;
/**
 * pdf file name
 */
int fileSize=-1;
/**
 * eventually pdf will be converted to byte array
 */
byte [] fis=null;


/**
 * default constructor
 */
public PdfFile()
{
	this.fileName=null;
	this.fileSize=-1;
	this.fis=null;
}
/**
 * @param fileName pdf filename (including path)
 * @param fileSize 
 * @param fis the pdf converted to byte array
 */
public PdfFile(String fileName,int fileSize,byte [] fis)
{
	this.fileName=fileName;
	this.fileSize=fileSize;
	this.fis=fis;
}




public void setFileName(String fileName) {
	this.fileName = fileName;
}
public String  getFileName() {
	return  fileName;
}


public void setFileSize(int fileSize) {
	this.fileSize = fileSize;
}
public int  getFileSize() {
	return  fileSize;
}



public void setFileSize(byte [] fis) {
	this.fis = fis;
}
public byte []  getFIS() {
	return  fis;
}
}
